<template>
  <div>
    <!-- 背景图 -->
    <div class="myBg">
      <img src="http://liufusong.top:8080/img/profile/bg.png" alt="背景图" />
    </div>
    <!-- 用户登录 -->
    <div class="myInfo">
      <!-- 用户头像 -->
      <div class="userImg">
        <img
          style="width: 60px; height: 60px"
          src="http://liufusong.top:8080/img/profile/avatar.png"
          alt=""
        />
      </div>
      <p style="font-size: 14px">游客</p>
      <div class="login">
        <van-button type="primary" to="/login">去登录</van-button>
      </div>
    </div>
    <!-- 导航 -->
    <div class="userNav">
      <van-grid clickable :column-num="3">
        <van-grid-item icon="star-o" text="我的收藏" to="/" />
        <van-grid-item icon="wap-home-o" text="我的出租" to="/" />
        <van-grid-item icon="clock-o" text="看房记录" url="/vant/mobile.html" />
      </van-grid>
      <van-grid clickable :column-num="3">
        <van-grid-item icon="debit-pay" text="成为房主" to="/" />
        <van-grid-item icon="contact" text="个人资料" to="/" />
        <van-grid-item
          icon="question-o"
          text="联系我们"
          url="/vant/mobile.html"
        />
      </van-grid>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
.myBg img {
  width: 375px;
  height: 191px;
}

.myInfo {
  width: 319px;
  height: 165px;
  text-align: center;
  position: fixed;
  top: 135px;
  margin-left: 26px;
  margin-bottom: 15px;
  background-color: #fff;
  box-shadow: 0 0 10px 3px #ddd;
}
.userNav {
  margin-top: 120px;
}
.userImg {
  width: 60px;
  height: 60px;
  border-radius: 35px;
  background-color: #fff;
  margin-top: -30px;
  margin-left: 125px;
  border: 5px solid #f5f5f5;
  box-shadow: 0 2px 2px #bdbdbd;
}
.userImg img {
  width: 60px;
  height: 60px;
  line-height: 70px;

}
.van-grid-item {
  border: 1px, solid, #fff;
}
</style>
